home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / MSI200.ARJ / RUNMSI.BAT < prev    next >
DOS Batch File  |  1992-08-18  |  1KB  |  86 lines

  1. @echo off
  2.  
  3. :Reload
  4.  
  5. REM Replace with YOUR mouse driver....
  6. REM MOUSE
  7.  
  8. :MenusOnly
  9.  
  10. REM Start the Menus...
  11. MSI
  12.  
  13. REM Have returned with errorlevel = 0-9 
  14. REM 0 = Normal Quit  1-8 = User Defined  9 = Normal MSI Action
  15.  
  16. if errorlevel 9 goto MSIAction
  17.  
  18. REM Substitute your lables for Exit in 8 - 2 for your commands
  19. if errorlevel 8 goto Level8
  20. if errorlevel 7 goto Level7
  21. if errorlevel 6 goto Level6
  22. if errorlevel 5 goto Level5
  23. if errorlevel 4 goto Level4
  24. if errorlevel 3 goto Level3
  25. if errorlevel 2 goto Level2
  26. if errorlevel 1 goto Level1
  27.  
  28. goto Exit
  29.  
  30. REM For MSI Action Commands ONLY
  31. :MSIAction
  32. CALL ACT
  33. GOTO MenusOnly
  34.  
  35.  
  36. REM Change this section to unload your mouse and setup your Windows
  37.  
  38. :Level1
  39. REM MOUSE U
  40.  
  41. REM Your Action Window MUST contain the Windows start-up instructions
  42.  
  43. CALL ACT
  44. GOTO Reload
  45.  
  46.  
  47. REM Load & Unload TSR's immediately before and after "call act"
  48. :Level2
  49. CALL ACT
  50. GOTO MenusOnly
  51.  
  52. :Level3
  53. CALL ACT
  54. GOTO MenusOnly
  55.  
  56. :Level4
  57. CALL ACT
  58. GOTO MenusOnly
  59.  
  60. :Level5
  61. CALL ACT
  62. GOTO MenusOnly
  63.  
  64. :Level6
  65. CALL ACT
  66. GOTO MenusOnly
  67.  
  68. :Level7
  69. CALL ACT
  70. GOTO MenusOnly
  71.  
  72. :Level8
  73. call act
  74. goto MenusOnly
  75.  
  76.  
  77. REM This is the TRUE exit from the MSI Menu System
  78. :Exit
  79.  
  80. :REM Unloading driver before quitting is a MUST...!
  81. REM MOUSE U
  82.  
  83. ECHO ...
  84. ECHO Type RUNMSI to restart the MSI Menu System...
  85.  
  86.